<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	// 如果用户的session失效,就不能让用户让问到个人中心
	if (session.getAttribute("talent") == null) {
		response.sendRedirect(request.getContextPath()
				+ "/view/talent/login.jsp?logoutSuccess=true");
		return;
	}
%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>求职者个人资料</title>
	<%@include file="/view/common/js-css.jsp" %>
</head>
<body>
<script>
		/**
		 * 操作提示
		 */
		 if ('${result}' === '1' || '${param.result}' === '1') {
			 layer.msg('操作成功~', {icon : 1}); 
		 }
		 if ('${result}' === '0' || '${param.result}' === '0') {
			 layer.msg('操作失败~', {icon : 2}); 
		 }
		/**
		* 回到求职者首页
		*/
		function goHome() {
			location = '<%=request.getContextPath()%>/TalentServlet?command=main';
		}
</script>
	<!-- 登录失败后的页面显示 -->
	<!--  
		<c:if test="${!empty requestScope.talent }">
			<div class="alert alert-danger alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>求职者注册失败！</strong>
			</div>
		</c:if>
		-->
	欢迎您：
	<span class="label label-info">${talent.name}</span>
	<span class="pull-right">
		<a href="<%=request.getContextPath()%>/PositionServlet?command=listAllPosition">所有职位信息</a>
		| <a href="<%=request.getContextPath()%>/view/talent/talent-info.jsp">个人资料</a>
		| <a href="<%=request.getContextPath()%>/TalentServlet?command=logout"
		onclick="confirm('确认删除？')">系统注销</a></span>
	
</body>
</html>